package com.myself.cloud.service.service;

import com.myself.cloud.entity.ResultEntity;
import com.myself.cloud.entity.bean.ApproveProcessConfig;
import com.myself.cloud.service.service.feginImpl.FeginServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @auther baijialiang
 * @create 2022-08-22
 * @describe 审批流配置表服务类
 */
@FeignClient(value = "analyseService", path = "/analyse", fallback = FeginServiceImpl.class)
@Component
public interface IFeginService {
    /**
     * @param approveProcessConfig
     * @return
     */
    @PostMapping(value = "approve-process-config/list", produces = "application/json;charset=UTF-8")
    ResultEntity<List<ApproveProcessConfig>> getList(@RequestBody ApproveProcessConfig approveProcessConfig);
}
